package org.example;

public class Client {
    public static void main(String[] args) {
        ConcreteForm form = new ConcreteForm();
        form.setContent("我是原表");
        System.out.println(form.getContent());

        HeadDecorator1 head1 = new HeadDecorator1(form);
        head1.addHead1();
        System.out.println(form.getContent());

        TailDecorator1 tail1 = new TailDecorator1(form);
        tail1.addTail1();
        System.out.println(form.getContent());
    }
}